package cn.yhbk.web.modules.manager.Mapper;

import cn.yhbk.web.modules.manager.Pojo.Entity.TbMajor;
import cn.yhbk.web.modules.manager.Pojo.DTO.Major.MajorParam;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 专业表 Mapper 接口
 * </p>
 *
 * @author 有何不可
 * @since 2023-08-05
 */
@Mapper
@Repository
public interface TbMajorMapper extends BaseMapper<TbMajor> {

    Integer queryTotalNum(Long collegeId);

    List<TbMajor> queryMajorPage(@Param("i") Integer i,
                                 @Param("pageSize") Integer pageSize,
                                 @Param("collegeId") Long collegeId);

    List<MajorParam> getMajorAll();


}
